package com.jhgk.jhcee.message;

import com.jhgk.jhcee.message.component.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author: xiezhongping
 * @description:
 * @date: 2021/8/6 8:47.
 */
@SpringBootApplication
@EnableDiscoveryClient
public class JhceeMessageApplication {
    public static void main(String[] args) {
        SpringApplication.run(JhceeMessageApplication.class, args);
        try {
            new NettyServer(8000).start();
        } catch (Exception e) {
            System.out.println("netty server error:" + e.getMessage());
        }
    }

}
